import zh_CN_url from "/@/locales/lang/zh_CN/tinymce?url";
import env from "/@/base/env";

interface LangInfo {
  language_url: string;
  language: string;
}

const urlObj = {
  zh_CN: {
    language_url: zh_CN_url,
    language: "zh_CN",
  },
};

export function getTinyMCELangInfo(): LangInfo | null {
  const target = urlObj[env.lang];
  return target || null;
}
